﻿using FluentNHibernate.Mapping;
using IapService.Entity;

namespace IapService.Mappings
{
    public class FavoriteMap : ClassMap<Favorite>
    {
        public FavoriteMap()
        {
            Not.LazyLoad();

            Id(x => x.Id);
            Map(x => x.Title);
            References(x => x.Sample, "sampleId").Cascade.All().NotFound.Ignore();
        }
    }
}